﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using TrainigWorkshop.Model;

namespace TrainigWorkshop.DAL_EF.ModelTranslation
{
    class ClassEFTranslator
    {
        public static List<Grade> ToClassModel(List<Class> inputList)
        {
            List<Grade> classList = new List<Grade>();
            foreach (Class c in inputList)
            {
                Grade grade = new Grade();
                grade.ClassId = c.ClassId;
                grade.ClassName = c.ClassName;

                classList.Add(grade);
            }
            return classList;

        }
    }
}
